import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.layui.ApplicationMain;
import com.layui.entity.MBlog;
import com.layui.service.MBlogService;
import org.junit.jupiter.api.Test;
import org.junit.platform.commons.util.StringUtils;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;
import java.util.List;

@SpringBootTest(classes = ApplicationMain.class)
public class T {
    @Resource
    private MBlogService service;
    @Test
    public void test() {
//        Page<MBlog> page = new Page<>();
//        QueryWrapper<MBlog> queryWrapper = new QueryWrapper<>();
//        IPage<MBlog> pageinfo = service.page(page, queryWrapper);
//        System.out.println(pageinfo.getTotal());
//        MBlog one = service.getById(126);
//        for (int i = 0; i < 50; i++) {
//            service.save(one);
//        }


    }
}
